package com.edu.admin.entity;


import javax.persistence.Table;
import javax.persistence.Transient;
import javax.validation.constraints.NotBlank;

import com.edu.admin.common.BaseEntity;

/**
 * 角色菜单表实体
 * 
 * @author Wangjiong
 * 
 */
@Table(name = "sys_role_menu")
public class SysRoleMenu extends BaseEntity{ 

	/**
	 * 
	 */
	private static final long serialVersionUID = -182526891133624825L;
	/**
	 * 角色id
	 * 
	 */
	@NotBlank(message = "角色不能为空")
	private Long roleId;
	/**
	 * 菜单id
	 * 
	 */
	@NotBlank(message = "菜单不能为空")
	private Long menuId;
	/**
	 * 角色名称
	 * 
	 */
	@Transient
	private String roleName;
	/**
	 * 菜单名称
	 * 
	 */
	@Transient
	private String menuName;
	
	public Long getRoleId() {
		return roleId;
	}
	public void setRoleId(Long roleId) {
		this.roleId = roleId;
	}
	public Long getMenuId() {
		return menuId;
	}
	public void setMenuId(Long menuId) {
		this.menuId = menuId;
	}
	public String getRoleName() {
		return roleName;
	}
	public void setRoleName(String roleName) {
		this.roleName = roleName;
	}
	public String getMenuName() {
		return menuName;
	}
	public void setMenuName(String menuName) {
		this.menuName = menuName;
	}
	


}
